﻿using System;
using System.Windows.Forms;

namespace Citi.ProcureToPay.WindowsUi.P2PExtraction
{
    public partial class EOBusinessObjectsExtraction : Form
    {
        string reportName;
        string singleSignOnUrl;
        string startUrl;
        string additionalUrls;
        string userLogin;
        string pathToSave;
        string parameters;

        public EOBusinessObjectsExtraction(string reportName, string startUrl, string singleSignOnUrl, string additionalUrls, string userLogin, string pathToSave, string parameters)
        {
            InitializeComponent();

            this.reportName = reportName;
            this.singleSignOnUrl = singleSignOnUrl;
            this.pathToSave = pathToSave;
            this.userLogin = userLogin;
            this.parameters = parameters;
            this.startUrl = startUrl;
            this.additionalUrls = additionalUrls;
        }

        private void EOBusinessObjectsExtraction_Load(object sender, EventArgs e)
        {
            new Extract(webControl, reportName, startUrl, singleSignOnUrl, additionalUrls, userLogin, pathToSave, parameters, true, this).StartExtraction(additionalUrls);
        }
    }
}